| API Documentation |  |

- MAIN PAGE
- NAMESPACES
- CLASSES

CameraWrapper.h
1 // CameraWrapper.h
3 //
5
6 namespace nkAstraeus::nkGraphicsWrap
7 {
11 class CameraWrapper final
12 {
13 public :
14
15 // Environment update
21 static void updateEnvironment (nkScripts::Environment* env) ;
22
23 // Callbacks
24 // Getters
35 static nkScripts::OutputValue getNear (const nkScripts::DataStack& stack) ;
46 static nkScripts::OutputValue getFar (const nkScripts::DataStack& stack) ;
57 static nkScripts::OutputValue getPositionAbsolute (const nkScripts::DataStack& stack) ;
68 static nkScripts::OutputValue getFrustum (const nkScripts::DataStack& stack) ;
79 static nkScripts::OutputValue getPerspectiveFov (const nkScripts::DataStack& stack) ;
90 static nkScripts::OutputValue getOrthographicHeight (const nkScripts::DataStack& stack) ;
101 static nkScripts::OutputValue getDirectionAtPixelView (const nkScripts::DataStack& stack) ;
112 static nkScripts::OutputValue getDirectionAtPixelWorld (const nkScripts::DataStack& stack) ;
113 } ;
114 }
nkAstraeus::nkGraphicsWrap::CameraWrapper::getFrustum
static nkScripts::OutputValue getFrustum(const nkScripts::DataStack &stack)
nkScripts::Environment
Defines an environment in which scripts can execute.
Definition: Environment.h:14
nkAstraeus::nkGraphicsWrap::CameraWrapper::getFar
static nkScripts::OutputValue getFar(const nkScripts::DataStack &stack)
nkAstraeus::nkGraphicsWrap::CameraWrapper::getNear
static nkScripts::OutputValue getNear(const nkScripts::DataStack &stack)
nkAstraeus::nkGraphicsWrap::CameraWrapper::getDirectionAtPixelWorld
static nkScripts::OutputValue getDirectionAtPixelWorld(const nkScripts::DataStack &stack)
nkMemory::BufferView
A view over data.
Definition: BufferView.h:18
nkScripts::FunctionParameter
A function parameter, used within the stack of arguments.
Definition: FunctionParameter.h:25
nkAstraeus::nkGraphicsWrap::CameraWrapper::getDirectionAtPixelView
static nkScripts::OutputValue getDirectionAtPixelView(const nkScripts::DataStack &stack)
nkAstraeus::nkGraphicsWrap::CameraWrapper
Wraps a nkGraphics::Camera and offers functions for use in scripting.
Definition: CameraWrapper.h:12
nkAstraeus::nkGraphicsWrap::CameraWrapper::getPerspectiveFov
static nkScripts::OutputValue getPerspectiveFov(const nkScripts::DataStack &stack)
nkAstraeus::nkGraphicsWrap
Encompasses the wrapping of nkGraphics for scripting.
Definition: BoundingBoxWrapper.h:7
nkAstraeus::nkGraphicsWrap::CameraWrapper::getPositionAbsolute
static nkScripts::OutputValue getPositionAbsolute(const nkScripts::DataStack &stack)
nkAstraeus::nkGraphicsWrap::CameraWrapper::updateEnvironment
static void updateEnvironment(nkScripts::Environment *env)
nkAstraeus::nkGraphicsWrap::CameraWrapper::getOrthographicHeight
static nkScripts::OutputValue getOrthographicHeight(const nkScripts::DataStack &stack)